package sk.fiit.vppj.eventmanager.data;

/**
 * Data class, which represents user role Volunter. Extends class User. The class is immutable.
 * 
 * @author Marek
 * 
 */
public final class Volunteer extends User {

	public Volunteer(int id) {
		super( id, "volunteer" );
	}

	public String getTitle() {
		return this.data.get( "title" ).toString();
	}

	public String getLanguageSkills() {
		return this.data.get( "languageSkills" ).toString();
	}
	
	public boolean isMilsetRepresentative() {
		if( Integer.parseInt( this.data.get( "milsetRepresentative" ).toString() ) == 1 ) {
			return true;
		}
		return false;
	}

	public String getExperience() {
		return this.data.get( "experiences" ).toString();
	}

	public String getExpectedPosition() {
		return this.data.get( "expectedPosition" ).toString();
	}

	/**
	 * 
	 * @return Returns status of his application to competition
	 */
	public String getStatus() {
		return this.data.get( "status" ).toString();
	}

	public boolean isTeamLeader() {
		if( Integer.parseInt( this.data.get( "teamLeader" ).toString() ) == 1 ) {
			return true;
		}
		return false;
	}
}
